﻿using System.Collections.Generic;
namespace MvcSite.Models
{
    public enum AdminPage
    {
        Index = 0,
        Album = 1,
        Notizie = 2,
        Utenti = 3,
        NewsLetter = 4
    }

    public class Indirizzi
    {
        public static Dictionary<AdminPage, string> lista;
        

        public static string GetIndirizzo(AdminPage pagina)
        {
            if (lista == null)
            {
                lista = new Dictionary<AdminPage, string>();
                lista.Add(AdminPage.Index, "/Admin/Pannello");
                lista.Add(AdminPage.Album, "/Admin/Pannello#ui-tabs-1");
                lista.Add(AdminPage.Notizie, "/Admin/Pannello#ui-tabs-2");
                lista.Add(AdminPage.Utenti, "/Admin/Pannello#ui-tabs-3");
                lista.Add(AdminPage.NewsLetter, "/Admin/Pannello#ui-tabs-4");
            }
            return lista[pagina];
        }
    }
}
